package com.ahaoyou.mapper;

import com.ahaoyou.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author LH
 * @Date 2021-09-26 16:20
 */
@Repository
public interface UserMapper {
    /**
     * 查询全部
     * @return User集合
     */
    @Select("select * from user")
    List<User> findAll();
}

